<?php

error_reporting(0);
require_once 'mathpublisher.php';
$message = isset($_POST['message']) ? $_POST['message'] : '';
if (isset($message) && $message != '') {
    echo json_encode(array('image' => mathfilter($message, 13, 'http://' . $_SERVER['HTTP_HOST'] . '/w/img/equation/')));
}
?>
